Skip to content

Handle brace initializers#55650

Closed
j-piasecki wants to merge 8 commits intofacebook:mainfrom
j-piasecki:export-D93845131
Closed

Handle brace initializers#55650
j-piasecki wants to merge 8 commits intofacebook:mainfrom
j-piasecki:export-D93845131

Conversation

@j-piasecki
Copy link
Contributor

Summary:
Changelog: [Internal]

Updates the C++ snapshot generation script to correctly handle brace-initialized values. It also adds STORE_INITIALIZERS_IN_SNAPSHOT which can be used to enable/disable presence of initializers in the API snapshot.

Differential Revision: D93845131

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 20, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 20, 2026

@j-piasecki has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93845131.

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Feb 23, 2026
Summary:
Pull Request resolved: facebook#55650

Changelog: [Internal]

Updates the C++ snapshot generation script to correctly handle brace-initialized values. It also adds `STORE_INITIALIZERS_IN_SNAPSHOT` which can be used to enable/disable presence of initializers in the API snapshot.

Reviewed By: cortinico

Differential Revision: D93845131
Jakub Piasecki added 7 commits February 25, 2026 05:43
Summary:
Refactors utils.py into a proper package structure and adds comprehensive argument string parsing utilities.

- Converts utils.py to utils/ package with submodules
- Adds argument_parsing.py with parse_arg_string() and related utilities
- Adds qualified_path.py with parse_qualified_path moved from old utils.py
- Renames test_member.py to test_parse_arg_string.py with updated tests for the new 4-tuple Argument format
- Minor cosmetic improvement to doxygen output messages

Differential Revision: D94077819
Summary:
Implements fallback name qualification for cases where doxygen doesn't extract the full qualified name, and instead passes on the string it found in the header file.

- Adds type_qualification.py with qualify_type_str(), qualify_arguments(), and qualify_parsed_type()
- Updates member.py with close() methods for VariableMember, FunctionMember, and TypedefMember to apply type qualification
- Updates main.py with get_doxygen_params() to extract structured parameter info
- Fixes scope.py qualify_name() to properly track anchor_scope for partially-qualified names
- Adds comprehensive test cases for various qualification scenarios

Differential Revision: D94077825
Differential Revision: D93407597
Differential Revision: D93407605
Differential Revision: D93407624
Differential Revision: D93407634
Summary:
Changelog: [Internal]

Updates the repository root resolution of the C++ api generation script.

Differential Revision: D93857297
j-piasecki added a commit to j-piasecki/react-native that referenced this pull request Feb 25, 2026
Summary:
Pull Request resolved: facebook#55650

Changelog: [Internal]

Updates the C++ snapshot generation script to correctly handle brace-initialized values. It also adds `STORE_INITIALIZERS_IN_SNAPSHOT` which can be used to enable/disable presence of initializers in the API snapshot.

Reviewed By: cortinico

Differential Revision: D93845131
Summary:
Pull Request resolved: facebook#55650

Changelog: [Internal]

Updates the C++ snapshot generation script to correctly handle brace-initialized values. It also adds `STORE_INITIALIZERS_IN_SNAPSHOT` which can be used to enable/disable presence of initializers in the API snapshot.

Reviewed By: cortinico

Differential Revision: D93845131
@meta-codesync meta-codesync bot closed this in 6ea9236 Feb 25, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 25, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 25, 2026

This pull request has been merged in 6ea9236.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants